package com.app.mapper;

import com.app.pojo.Order;
import com.app.pojo.Poster;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PosterMapper {
    @Select("select * from `Poster`")
    List<Poster> list();
    @Insert("insert into `Poster`(img_content,poster_name) values (#{img_content},#{poster_name})")
    void insert(Poster poster);
    @Delete("delete from `Poster` where img_id = #{img_id}")
    void delete(int img_id);
}
